﻿namespace FaceService.WebAPI.Controllers.FaceInfo;

public record GetFaceRequest(string? Search, int PageNo, int PageSize);

public class GetFaceRequestValidator : AbstractValidator<GetFaceRequest>
{
    public GetFaceRequestValidator()
    {
        RuleFor(e => e.Search);
        RuleFor(e => e.PageNo).NotNull().NotEmpty().GreaterThanOrEqualTo(1);
        RuleFor(e => e.PageSize).NotNull().NotEmpty().GreaterThanOrEqualTo(1);;
    }
}